package com.zhouwr.system.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 部门角色权限表
 *
 * @author zhouwr
 * @email 1551541860@qq.com
 * @date 2020-10-08 15:53:25
 */
@Data
@ApiModel(value = "sys_depart_role_permission对象" , description = "部门角色权限表")
@TableName("sys_depart_role_permission")
public class DepartRolePermissionEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    @ApiModelProperty(value = "")
    private String id;
    /**
     * 部门id
     */
    @ApiModelProperty(value = "部门id")
    private String departId;
    /**
     * 角色id
     */
    @ApiModelProperty(value = "角色id")
    private String roleId;
    /**
     * 权限id
     */
    @ApiModelProperty(value = "权限id")
    private String permissionId;
    /**
     * 数据权限ids
     */
    @ApiModelProperty(value = "数据权限ids")
    private String dataRuleIds;
    /**
     * 操作时间
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "操作时间")
    private Date operateDate;
    /**
     * 操作ip
     */
    @ApiModelProperty(value = "操作ip")
    private String operateIp;

}
